﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace YogaStudio.Data.Domain
{
    public class Shipping
    {
        [Key, ForeignKey("Order")]
        public int OrderId { get; set; }
        
        [ForeignKey("ShippingStatus")]
        public int ShippingStatusId { get; set; }

        public DateTime? ShippedDate { get; set; }
        public string ShipTo { get; set; }
        public string ShipAddress1 { get; set; }
        public string ShipAddress2 { get; set; }
        public string ShipCity { get; set; }
        public string ShipProvince { get; set; }
        public string ShipPostalCode { get; set; }

        public virtual Order Order { get; set; }
        public virtual ShippingStatus ShippingStatus { get; set; }
    }
}
